package com.zixuan.controller;

import com.zixuan.common.Result;
import com.zixuan.entity.IssueEntity;
import com.zixuan.service.IssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/Iss")
public class IssueController {

    @Autowired
    private IssueService issueService;
    /**
     * 添加一个发布信息
     */
    @PostMapping("/addIssue")
    public Result addIssue(@RequestBody IssueEntity issueEntity){
        return issueService.addIssue(issueEntity);
    }

}
